package com.trs.zk.config.service.impl;

import com.trs.zk.config.service.TestService;
import com.trs.zk.modules.sys.entity.User;
import com.trs.zk.modules.sys.dao.UserDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 转载请注明出处，更多技术文章欢迎大家访问我的个人博客站点：https://www.doufuplus.com
 *
 * @author 丶doufu
 * @date 2019/08/08
 */
@Service
public class TestServiceImpl implements TestService {

    @Resource
    private UserDao userMapper;

    @Override
    public User findUserByAccount(String account) {
        User user = new User();
        user.setUsername(account);
        return userMapper.getByLoginName(user);
    }
}
